Dynomotion

Group: DynoMotion Message: 11769 From: tapiolarikka Date: 6/24/2015
Subject: Limit switch options?
Hi Tom,

I run into trouble with NormallyClosed limit switch.

I have the switch connected to Konnect bit 1106. The switch should be working properly since I see the bit state change in the IO screen when I activate/deactivate the switch.

Trouble is that deactive (bit 1106 checked in IO screen) limit switch disables the drive/channel regardless how I select the watch limit and stop when low boxes.

Activated limit (bit 1106 unchecked in IO screen) allows movement, also regardless how I select the watch limit and stop when low boxes.

I had V431, now downloaded latest V432 but didn't fix this.

Am I missing something trivial or is this know issue/bug?

Rgds,
Tapio


Group: DynoMotion Message: 11770 From: Tom Kerekes Date: 6/24/2015
Subject: Re: Limit switch options?
Hi Tapio,

After you change the Stop when Low state are you downloading it to KFLOP before testing?  How are you testing?  What is printed on the Console?

Regards
TK

Group: DynoMotion Message: 11773 From: Tapio Larikka Date: 6/24/2015
Subject: Re: Limit switch options?

Hi Tom,
 
Testing by Step Response/Move. Console says Pos limit disabled axis. If I swap the bit to neg limit then forward move executes but neg limit disables the return movement.
 
Rgds,
Tapio
 
----- Original Message -----
Sent: Thursday, June 25, 2015 12:03 AM
Subject: Re: [DynoMotion] Limit switch options?

 

Hi Tapio,

After you change the Stop when Low state are you downloading it to KFLOP before testing?  How are you testing?  What is printed on the Console?

Regards
TK

Group: DynoMotion Message: 11782 From: Tom Kerekes Date: 6/25/2015
Subject: Re: Limit switch options?
Hi Tapio,

I assume you tried this with Stop When Low checked or unchecked?

One remote possibility is that noise is causing the signal to be both high and low (with a small duty cycle so it may not be seen on the Digital I/O Screen).

Try running these two test routines to check for that and report the results (test in the inactive state):


#include "KMotionDef.h"

// Simple check for Glitch on Input Pin

main()
{
    while (!ReadBit(1106)) ;  // tight loop while input is low
    printf("Input was high!!\n");
}

#include "KMotionDef.h"

// Simple check for Glitch on Input Pin

main()
{
    while (ReadBit(46)) ;  // tight loop while input is low
    printf("Input was low!!\n");
}

Regards
TK

Group: DynoMotion Message: 11783 From: Tapio Larikka Date: 6/25/2015
Subject: Re: Limit switch options?

Hi Tom,
 
Yes I tried it both ways. I double checked this yesterday to make sure. The odd thing is that movement gets stopped also when watch limit is unchecked. 
When I change the bit to 1107 the movement is OK.
 
I try those tests and report back
 
Rgds,
Tapio
 
 
----- Original Message -----
Sent: Friday, June 26, 2015 5:18 AM
Subject: Re: [DynoMotion] Limit switch options?

 

Hi Tapio,

I assume you tried this with Stop When Low checked or unchecked?

One remote possibility is that noise is causing the signal to be both high and low (with a small duty cycle so it may not be seen on the Digital I/O Screen).

Try running these two test routines to check for that and report the results (test in the inactive state):


#include "KMotionDef.h"

// Simple check for Glitch on Input Pin

main()
{
    while (!ReadBit(1106)) ;  // tight loop while input is low
    printf("Input was high!!\n");
}

#include "KMotionDef.h"

// Simple check for Glitch on Input Pin

main()
{
    while (ReadBit(46)) ;  // tight loop while input is low
    printf("Input was low!!\n");
}

Regards
TK